Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Time Base Functions / Working With Time Base Values


SetTimeBaseTime

The SetTimeBaseTime function allows your application to set the current time of a time base. You must specify the new time in a time structure.

pascal void SetTimeBaseTime (TimeBase tb, const TimeRecord *tr); 
tb
Specifies the time base for this operation. Your application obtains this time base identifier from the NewTimeBase function (described on page 2-297).
tr
Contains a pointer to a time structure that contains the current time value.
DESCRIPTION
If you set the current time of a time base that is the master time base for other time bases, the current times in all the dependent time bases are changed appropriately. If you change the current time in a time base that relies on a master time base, the Movie Toolbox changes the offset between the time base and the master time base--the master time base is not affected.

ERROR CODES
None

SEE ALSO
You can set the current time of a time base from a time value by calling the SetTimeBaseValue function, which is described in the next section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996